package com.ybliang.plat.cms.feign;

import com.ybliang.plat.cms.feign.fallback.UserFeignClientFallbackFactory;
import com.ybliang.plat.common.data.vo.resp.Resp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "user", url = "http://localhost:18888", fallbackFactory = UserFeignClientFallbackFactory.class)
public interface UserFeignClient {

    @RequestMapping(value = "/user/info")
    public Resp info();

    @RequestMapping(value = "/user/find/mobile/{mobile}")
    public Resp findByMobile(@PathVariable String mobile);
}
